import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl";

const TCHYURL = BASEURL.TCHYURL;
const selfOperatedWaybillApi = {
  //自营订单列表
  getWaybillList(params) {
    let url = TCHYURL + "/supplier/selfSupportWaybill/waybillInfo_list";
    return myaxios.get(url, params);
  },
   //自营运单列表导出
   export_waybillInfo_list(params) {
    let url = TCHYURL + "/supplier/selfSupportWaybill/export_waybillInfo_list";
    return myaxios.get(url, params);
  },
  //自营订单详情
  getWaybillDetail(params) {
    let url = TCHYURL + "/supplier/selfSupportWaybill/waybill/detail";
    return myaxios.get(url, params);
  },
  // 自营订单审核
  WaybillAudit(params) {
    let url = TCHYURL + "/supplier/selfSupportWaybill/waybill_audit";
    return myaxios.post(url, params);
  },
 //地址详情
 informationNode(params){
  let url = TCHYURL + '/supplier/waybill/informationNode'
  return myaxios.get(url, params)
},
//驳回
abnormal(params){
  let url = TCHYURL + '/supplier/waybill/abnormal'
  return myaxios.post(url, params)
},

};
export default selfOperatedWaybillApi;
